package com.blockchain.securewallet.activities;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.blockchain.securewallet.R;
import com.blockchain.securewallet.base.BaseActivity;
import com.blockchain.securewallet.interfaces.WalletFields;
import com.blockchain.securewallet.manager.FAQManager;
import com.blockchain.securewallet.utils.StringUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;


/**
 * FAQ的二级页面
 */
public class FAQDetailsActivity extends BaseActivity {

    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_content)
    TextView tvContent;

    public static final String type = "type";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_faq_details);
        ButterKnife.bind(this);

        Intent intent = getIntent();
        int code = intent.getIntExtra(type, -1);

        tvTitle.setText(FAQManager.getFAQTitle(code));
        tvContent.setText(FAQManager.getFAQDetails(code));
    }

    @OnClick(R.id.btn_back)
    public void onViewClicked() {
        finish();
    }

}
